package com.wisdudu.frame.support.util;

import android.text.TextUtils;

import java.util.List;

/**
 * Created by qyf on 2016/9/6.
 */

public enum ListUtil {
    INSTANCE;

    public boolean isEmpty(List list) {
        return list == null || list.size() == 0;
    }

    public String setListToStr(String str) {
        if (TextUtils.isEmpty(str)) {
            return "";
        }
        return str.replace("[", "").replace("]", "").replace(" ", "");
    }
}
